<?php
/**
 * Copyright (C) 2013 peredur.net
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
include_once 'includes/db_connect.php';
include_once 'includes/functions.php';

sec_session_start();

if (login_check($mysqli) == true) {
    $logged = 'in';
} else {
    $logged = 'out';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Health America, Insurance!</title>
	<link rel="stylesheet" type="text/css" href="CSS/style.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="CSS/loginpopup.css" media="screen" />
   	<link rel='stylesheet' type='text/css' href='CSS/stylesMenu.css' />
	<script src="Assets/jquery.min.js"></script>
	<script src="Assets/popup.js"></script>
    <script src="Assets/jquery-1.10.1.min.js"></script>
	<script src="Assets/jquery-migrate-1.2.1.min.js"></script>
	
	<!--Secure PHP Login Scripts-->
	<script type="text/JavaScript" src="js/sha512.js"></script> 
    <script type="text/JavaScript" src="js/forms.js"></script> 
</head>
<body>
	<?php
        if (isset($_GET['error'])) {
            echo '<p class="error">Error Logging In!</p>';
        }
    ?>
<div id="main_container">
<div class="header">
    <div id="logo"><a href="http://www.insurancecostless.com/"><img src="images/logoheader.png" width="104" height="114" /></a></div>
  <div class="right_header">
    <div class="top_menu">
      <div class="toggler">
        
        <table width="100%">
  <tr>
    <th scope="col">
     <!----------------------------start login code------------------------------------>
          <div class="toggler" id="effect">
                <a href="#login-box" class="login-window">Login / Sign In</a>
				<div id="login-box" class="login-popup">
				<a href="#" class="close"><img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>
				<form method="post" class="signin" action="#">
		        <fieldset class="textbox">
        		<label class="username">
		        <span>Username or email</span>
        		<input id="username" name="username" value="" type="text" autocomplete="on" placeholder="Username">
		        </label>
        		<label class="password">
		        <span>Password</span>
        		<input id="password" name="password" value="" type="password" placeholder="Password">
		        </label>
        		<button class="submit button" type="button">Sign in</button>
		        <p>
        		<a class="forgot" href="#">Forgot your password?</a>
		        </p>        
        		</fieldset>
			  </form>
          </div>
       </th>
    <th scope="col">
    
    <!----------------------------start enrollment code------------------------------------>
          <div class="toggler" id="effect">
                <a href="#Enroll-box" class="login-window">Create an Account</a>
				<div id="Enroll-box" class="login-popup">
				<a href="#" class="close"><img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>
				<form method="post" class="signin" action="#">
		        <fieldset class="textbox">
        		<label class="username">
		        <span>E-Mail (The email address entered will be your username)</span>
                <table width="100%">
    				<tr>
  					<th scope="col"><input id="username" name="username" value="" type="text" autocomplete="on" placeholder="Email Address"></th>
				    <th scope="col"><input id="reenterusername" name="reenterusername" value="" type="text" autocomplete="on" placeholder="Confirm your Email Address"></th>
					</tr>
				</table>
                </label>
 
         		<label class="password">
		        <span>Password</span>
        		<table width="100%">
    				<tr>
  					<th scope="col"><input id="password" name="password" value="" type="password" placeholder="Password"></th>
				    <th scope="col"><input id="reenterpassword" name="reenterpassword" value="" type="password" placeholder="Confirm your Password"></th>
					</tr>
				</table>
		        </label>
        		<button class="submit button" type="button">Create Account</button>
        		</fieldset>
			  </form>
          </div></th>
  		</tr>
		</table>
        </div>
      </div>
    <div class="statediv">
    <select name="Select your state">
        <option>Select Your State</option>
        <option>California</option>
        <option>Washington</option>
        <option>Florida</option>
      </select></div>
  </div>
  </div>
				       
                
                <!----------------------------start tabs code------------------------------------>
<div id='cssmenu'>
<ul>
   <li class='has-sub'><a href='#'><span>About Us</span></a>
      <ul>
         <li><a href='#'><span>Our Philosogy</span></a></li>
         <li><a href='#'><span>Core Stengths</span></a></li>
         <li><a href='#'><span>Our Services</span></a></li>
		 <li><a href='#'><span>Our Team</span></a></li>
      </ul>
   </li>
   <li class='has-sub'><a href='#'><span>Coverage</span></a>
      <ul>
         <li><a href='#'><span>Basics</span></a></li>
         <li><a href='#'><span>Individual</span></a></li>
         <li><a href='#'><span>Single Parents</span></a></li>
         <li><a href='#'><span>Small Business</span></a></li>
      </ul>
   </li>
   <li class='has-sub'><a href='#'><span>Resources</span></a>
      <ul>
         <li><a href='#'><span>Compare Tools</span></a></li>
         <li><a href='#'><span>Frequently Asked Questions</span></a></li>
         <li><a href='#'><span>Health Plan Bookles</span></a></li>
      </ul>
   </li>
   <li class='has-sub'><a href='#'><span>Programs and Partners</span></a>
      <ul>
         <li><a href='#'><span>Enrollment Assistance</span></a></li>
         <li><a href='#'><span>Health Insurance Compaies</span></a></li>
         <li><a href='#'><span>Certified Insurance Agents</span></a></li>
      </ul>
   </li>
	<li><a href='#'><span>News Center</span></a></li>
    <li><a href='#'><span>Blog</span></a></li>
   	<li><a href='#'><span>Contact Us</span></a></li>
</ul>
</div>
                  </ul>
    <script>
  					        (function() {
							var cx = '010768023934597209579:8exwu9zxnpa';
						    var gcse = document.createElement('script');
                    	    gcse.type = 'text/javascript';
                    	    gcse.async = true;
	                        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
                            '//www.google.com/cse/cse.js?cx=' + cx;
                    	    var s = document.getElementsByTagName('script')[0];
                    	    s.parentNode.insertBefore(gcse, s);
                    		})();
					</script>
							<gcse:search></gcse:search>
                	</div>
					<!----------------------------End tabs code------------------------------------>
					
                    <!--------------------------Start of Middle Box--------------------------------->
                    <div id="middle_box">
					    


<div class="middle_box_content"></div>
                        
				    
					<!--------------------------Start of Short Story--------------------------------->
						<div class="leftalignbox">
 							
                            <table width="100%" align="center">
 								<tr>
    								<td>Short Success Story</td>
  								</tr>
								<tr>
    								<td><a href="#login-box" class="login-window"><strong>Login / Sign In</strong></a></td>
	  							</tr>
							</table>
  </div>

                    <!--------------------------Start of rotator--------------------------------->


                    <!--------------------------End of rotator--------------------------------->
 </div>
                    <!--------------------------End of Middle Box--------------------------------->
					<!--------------------------Start of footer Box------------------------------->
                    
                    <div id="main_content">
    <div class="box_content">
      <div class="box_title">
        <div class="title_icon"><img src="images/logomini.png" alt="" /></div>
        <h2><span class="dark_blue">Health</span></h2>
      </div>
      <div class="box_text_content">
        <div class="box_text">Health Insurance statement</div>
        <a href="http://www.insurancecostless.com/" class="details">+ details</a> </div>
    </div>
    <div class="box_content">
      <div class="box_title">
        <div class="title_icon"><img src="images/smilesmall.png" alt="" /></div>
        <h2><span class="dark_blue">Dental</span></h2>
      </div>
      <div class="box_text_content">
        <div class="box_text">Dental Insurance statement</div>
        <a href="http://www.insurancecostless.com/" class="details">+ details</a> </div>
    </div>
    <div class="box_content">
      <div class="box_title">
        <div class="title_icon"><img src="images/Glassessmall.png" alt="" /></div>
        <h2><span class="dark_blue">Vision</span></h2>
      </div>
      <div class="box_text_content">
        <div class="box_text">Vision Insurance statement</div>
        <a href="http://www.insurancecostless.com/" class="details">+ details</a> </div>
    </div>
    <div class="clear"></div>
  </div>

</div>
</body>
</html>
